using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using LS.Event;

namespace LS.Saving
{
    /// <summary>
    /// 结束一个数据库的存档事件
    /// </summary>
    public class InternalEndSaveDatabaseEventArgs : LSGameEventArgs<InternalEndSaveDatabaseEventArgs>
    {
        public string GroupName { get; set; }
        
        public IDataFile File { get; set; }
        
        public Database Database { get; set; }
        
        public bool Success { get; set; }
        public string ErrorMessage { get; set; }

        public override void Clear()
        {
            Success = false;
            ErrorMessage = null;
            GroupName = null;
            File = null;
            Database = null;
            base.Clear();
        }
    }
}
